Optimal. Leaf size=330 \[ \frac {2 b f^2 \text {Li}_3\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^3}+\frac {2 b f^2 \text {Li}_3\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^3}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {b (e+f x)^2 \log \left (\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}+1\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (\frac {a e^{c+d x}}{\sqrt {a^2+b^2}+b}+1\right )}{a^2 d}+\frac {b (e+f x)^3}{3 a^2 f}+\frac {2 f^2 \sinh (c+d x)}{a d^3}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}+\frac {(e+f x)^2 \sinh (c+d x)}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.60, antiderivative size = 330, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 9, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {5594, 5579, 3296, 2637, 5561, 2190, 2531, 2282, 6589} \[ -\frac {2 b f (e+f x) \text {PolyLog}\left (2,-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {2 b f (e+f x) \text {PolyLog}\left (2,-\frac {a e^{c+d x}}{\sqrt {a^2+b^2}+b}\right )}{a^2 d^2}+\frac {2 b f^2 \text {PolyLog}\left (3,-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^3}+\frac {2 b f^2 \text {PolyLog}\left (3,-\frac {a e^{c+d x}}{\sqrt {a^2+b^2}+b}\right )}{a^2 d^3}-\frac {b (e+f x)^2 \log \left (\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}+1\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (\frac {a e^{c+d x}}{\sqrt {a^2+b^2}+b}+1\right )}{a^2 d}+\frac {b (e+f x)^3}{3 a^2 f}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}+\frac {2 f^2 \sinh (c+d x)}{a d^3}+\frac {(e+f x)^2 \sinh (c+d x)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2190
Rule 2282
Rule 2531
Rule 2637
Rule 3296
Rule 5561
Rule 5579
Rule 5594
Rule 6589
Rubi steps
\begin {align*} \int \frac {(e+f x)^2 \cosh (c+d x)}{a+b \text {csch}(c+d x)} \, dx &=\int \frac {(e+f x)^2 \cosh (c+d x) \sinh (c+d x)}{b+a \sinh (c+d x)} \, dx\\ &=\frac {\int (e+f x)^2 \cosh (c+d x) \, dx}{a}-\frac {b \int \frac {(e+f x)^2 \cosh (c+d x)}{b+a \sinh (c+d x)} \, dx}{a}\\ &=\frac {b (e+f x)^3}{3 a^2 f}+\frac {(e+f x)^2 \sinh (c+d x)}{a d}-\frac {b \int \frac {e^{c+d x} (e+f x)^2}{b-\sqrt {a^2+b^2}+a e^{c+d x}} \, dx}{a}-\frac {b \int \frac {e^{c+d x} (e+f x)^2}{b+\sqrt {a^2+b^2}+a e^{c+d x}} \, dx}{a}-\frac {(2 f) \int (e+f x) \sinh (c+d x) \, dx}{a d}\\ &=\frac {b (e+f x)^3}{3 a^2 f}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d}+\frac {(e+f x)^2 \sinh (c+d x)}{a d}+\frac {(2 b f) \int (e+f x) \log \left (1+\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right ) \, dx}{a^2 d}+\frac {(2 b f) \int (e+f x) \log \left (1+\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right ) \, dx}{a^2 d}+\frac {\left (2 f^2\right ) \int \cosh (c+d x) \, dx}{a d^2}\\ &=\frac {b (e+f x)^3}{3 a^2 f}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^2}+\frac {2 f^2 \sinh (c+d x)}{a d^3}+\frac {(e+f x)^2 \sinh (c+d x)}{a d}+\frac {\left (2 b f^2\right ) \int \text {Li}_2\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right ) \, dx}{a^2 d^2}+\frac {\left (2 b f^2\right ) \int \text {Li}_2\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right ) \, dx}{a^2 d^2}\\ &=\frac {b (e+f x)^3}{3 a^2 f}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^2}+\frac {2 f^2 \sinh (c+d x)}{a d^3}+\frac {(e+f x)^2 \sinh (c+d x)}{a d}+\frac {\left (2 b f^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (\frac {a x}{-b+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^3}+\frac {\left (2 b f^2\right ) \operatorname {Subst}\left (\int \frac {\text {Li}_2\left (-\frac {a x}{b+\sqrt {a^2+b^2}}\right )}{x} \, dx,x,e^{c+d x}\right )}{a^2 d^3}\\ &=\frac {b (e+f x)^3}{3 a^2 f}-\frac {2 f (e+f x) \cosh (c+d x)}{a d^2}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {b (e+f x)^2 \log \left (1+\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^2}-\frac {2 b f (e+f x) \text {Li}_2\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^2}+\frac {2 b f^2 \text {Li}_3\left (-\frac {a e^{c+d x}}{b-\sqrt {a^2+b^2}}\right )}{a^2 d^3}+\frac {2 b f^2 \text {Li}_3\left (-\frac {a e^{c+d x}}{b+\sqrt {a^2+b^2}}\right )}{a^2 d^3}+\frac {2 f^2 \sinh (c+d x)}{a d^3}+\frac {(e+f x)^2 \sinh (c+d x)}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 10.23, size = 1167, normalized size = 3.54 \[ -\frac {\text {csch}(c+d x) \left (\frac {b \log (b+a \sinh (c+d x))}{a^2}-\frac {\sinh (c+d x)}{a}\right ) (b+a \sinh (c+d x)) e^2}{d (a+b \text {csch}(c+d x))}+\frac {2 f \text {csch}(c+d x) (b+a \sinh (c+d x)) \left (-a \cosh (c+d x)-b (c+d x) \log (b+a \sinh (c+d x))+b c \log \left (\frac {a \sinh (c+d x)}{b}+1\right )+i b \left (-\frac {1}{8} i (2 c+2 d x+i \pi )^2-4 i \sin ^{-1}\left (\frac {\sqrt {\frac {i b}{a}+1}}{\sqrt {2}}\right ) \tan ^{-1}\left (\frac {(i a+b) \cot \left (\frac {1}{4} (2 i c+2 i d x+\pi )\right )}{\sqrt {a^2+b^2}}\right )-\frac {1}{2} \left (-2 i c-2 i d x+4 \sin ^{-1}\left (\frac {\sqrt {\frac {i b}{a}+1}}{\sqrt {2}}\right )+\pi \right ) \log \left (\frac {e^{c+d x} \left (\sqrt {a^2+b^2}-b\right )}{a}+1\right )-\frac {1}{2} \left (-2 i c-2 i d x-4 \sin ^{-1}\left (\frac {\sqrt {\frac {i b}{a}+1}}{\sqrt {2}}\right )+\pi \right ) \log \left (1-\frac {\left (b+\sqrt {a^2+b^2}\right ) e^{c+d x}}{a}\right )+\left (\frac {\pi }{2}-i (c+d x)\right ) \log (b+a \sinh (c+d x))+i \left (\text {Li}_2\left (\frac {\left (b-\sqrt {a^2+b^2}\right ) e^{c+d x}}{a}\right )+\text {Li}_2\left (\frac {\left (b+\sqrt {a^2+b^2}\right ) e^{c+d x}}{a}\right )\right )\right )+a d x \sinh (c+d x)\right ) e}{a^2 d^2 (a+b \text {csch}(c+d x))}+\frac {f^2 \text {csch}(c+d x) \left (2 b (\coth (c)-1) x^3-2 b \coth (c) x^3-\frac {6 a^2 b \left (d^2 \log \left (\frac {\left (b-\sqrt {a^2+b^2}\right ) (\cosh (c+d x)-\sinh (c+d x))}{a}+1\right ) x^2-2 d \text {Li}_2\left (\frac {\left (\sqrt {a^2+b^2}-b\right ) (\cosh (c+d x)-\sinh (c+d x))}{a}\right ) x-2 \text {Li}_3\left (\frac {\left (\sqrt {a^2+b^2}-b\right ) (\cosh (c+d x)-\sinh (c+d x))}{a}\right )\right )}{\sqrt {a^2+b^2} \left (\sqrt {a^2+b^2}-b\right ) d^3}-\frac {6 a^2 b \left (d^2 \log \left (\frac {\left (b+\sqrt {a^2+b^2}\right ) (\cosh (c+d x)-\sinh (c+d x))}{a}+1\right ) x^2-2 d \text {Li}_2\left (\frac {\left (b+\sqrt {a^2+b^2}\right ) (\sinh (c+d x)-\cosh (c+d x))}{a}\right ) x-2 \text {Li}_3\left (\frac {\left (b+\sqrt {a^2+b^2}\right ) (\sinh (c+d x)-\cosh (c+d x))}{a}\right )\right )}{\sqrt {a^2+b^2} \left (b+\sqrt {a^2+b^2}\right ) d^3}+\frac {6 b^2 \left (d^2 \log \left (\frac {a (\cosh (c+d x)+\sinh (c+d x))}{b-\sqrt {a^2+b^2}}+1\right ) x^2+2 d \text {Li}_2\left (\frac {a (\cosh (c+d x)+\sinh (c+d x))}{\sqrt {a^2+b^2}-b}\right ) x-2 \text {Li}_3\left (\frac {a (\cosh (c+d x)+\sinh (c+d x))}{\sqrt {a^2+b^2}-b}\right )\right )}{\sqrt {a^2+b^2} d^3}-\frac {6 b^2 \left (d^2 \log \left (\frac {a (\cosh (c+d x)+\sinh (c+d x))}{b+\sqrt {a^2+b^2}}+1\right ) x^2+2 d \text {Li}_2\left (-\frac {a (\cosh (c+d x)+\sinh (c+d x))}{b+\sqrt {a^2+b^2}}\right ) x-2 \text {Li}_3\left (-\frac {a (\cosh (c+d x)+\sinh (c+d x))}{b+\sqrt {a^2+b^2}}\right )\right )}{\sqrt {a^2+b^2} d^3}+\frac {6 a \cosh (d x) \left (\left (d^2 x^2+2\right ) \sinh (c)-2 d x \cosh (c)\right )}{d^3}+\frac {6 a \left (\left (d^2 x^2+2\right ) \cosh (c)-2 d x \sinh (c)\right ) \sinh (d x)}{d^3}\right ) (b+a \sinh (c+d x))}{6 a^2 (a+b \text {csch}(c+d x))} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.44, size = 1265, normalized size = 3.83 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (f x + e\right )}^{2} \cosh \left (d x + c\right )}{b \operatorname {csch}\left (d x + c\right ) + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 1.29, size = 0, normalized size = 0.00 \[ \int \frac {\left (f x +e \right )^{2} \cosh \left (d x +c \right )}{a +b \,\mathrm {csch}\left (d x +c \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {1}{2} \, e^{2} {\left (\frac {2 \, {\left (d x + c\right )} b}{a^{2} d} - \frac {e^{\left (d x + c\right )}}{a d} + \frac {e^{\left (-d x - c\right )}}{a d} + \frac {2 \, b \log \left (-2 \, b e^{\left (-d x - c\right )} + a e^{\left (-2 \, d x - 2 \, c\right )} - a\right )}{a^{2} d}\right )} - \frac {{\left (2 \, b d^{3} f^{2} x^{3} e^{c} + 6 \, b d^{3} e f x^{2} e^{c} - 3 \, {\left (a d^{2} f^{2} x^{2} e^{\left (2 \, c\right )} + 2 \, {\left (d^{2} e f - d f^{2}\right )} a x e^{\left (2 \, c\right )} - 2 \, {\left (d e f - f^{2}\right )} a e^{\left (2 \, c\right )}\right )} e^{\left (d x\right )} + 3 \, {\left (a d^{2} f^{2} x^{2} + 2 \, {\left (d^{2} e f + d f^{2}\right )} a x + 2 \, {\left (d e f + f^{2}\right )} a\right )} e^{\left (-d x\right )}\right )} e^{\left (-c\right )}}{6 \, a^{2} d^{3}} + \int -\frac {2 \, {\left (a b f^{2} x^{2} + 2 \, a b e f x - {\left (b^{2} f^{2} x^{2} e^{c} + 2 \, b^{2} e f x e^{c}\right )} e^{\left (d x\right )}\right )}}{a^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a^{2} b e^{\left (d x + c\right )} - a^{3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\mathrm {cosh}\left (c+d\,x\right )\,{\left (e+f\,x\right )}^2}{a+\frac {b}{\mathrm {sinh}\left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (e + f x\right )^{2} \cosh {\left (c + d x \right )}}{a + b \operatorname {csch}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________